package com.gdzn.netty.api.thread;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.validation.constraints.Min;

/**
 * @description: netty服务配置信息
 * @author: cxz kenny
 * @created: 2021-10-15 14:50:25
 * @version: V1.0
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "thread")
public class ThreadSleepTimeProperties {

    /**
     * sleep_time 睡眠时间，单位：秒
     */
    @Min(1)
    private int sleep_time=1;

}
